<f:layout name="BackendStandard" />

<f:section name="content">

<f:if condition="{RootPageList}">
	<table border="0" cellpadding="0" cellspacing="1" width="100%" class="typo3-dblist">
		<colgroup>
			<col width="*" />
			<col width="200" />
			<col width="80" />
			<col width="80" />
			<col width="20" />
		</colgroup>
		<thead>
			<tr>
				<td class="t3-row-header"><strong><f:translate key="table.header.rootpage">Root page</f:translate></strong></td>
				<td class="t3-row-header"><strong><f:translate key="table.header.domain">Domain</f:translate></strong></td>
				<td class="t3-row-header"><strong><f:translate key="table.header.sitemap">Sitemap</f:translate></strong></td>
				<td class="t3-row-header"><strong><f:translate key="table.header.robotstxt">Robots.txt</f:translate></strong></td>
				<td class="t3-row-header">&nbsp;</td>
			</tr>
		</thead>
		<tbody>

		<f:for each="{RootPageList}" as="RootPage" iteration="RootPageIterator">
			<tr>
				<!-- Title -->
				<td>{RootPage.title}</td>

				<!-- Domain list -->
				<td>
					<f:if condition="{RootPage.domainList}">
						<f:then>
							<f:for each="{RootPage.domainList}" as="Domain">
								<div style="white-space: nowrap">
									<f:if condition="{Domain.forced}">
										<f:then>
											<strong>{Domain.domainName}</strong>
										</f:then>
										<f:else>
											{Domain.domainName}
										</f:else>
									</f:if>
								</div>
							</f:for>
						</f:then>
						<f:else>
							<span class="tqseo-warning"><f:translate key="message.warning.no_domain_entries_found">No domains found</f:translate></span>
						</f:else>
					</f:if>
				</td>

				<!-- Sitemap status -->
				<td>
					<f:if condition="{RootPage.rootSettings.is_sitemap}">
						<f:then>
							<span class="t3-icon t3-icon-status t3-icon-status-status t3-icon-status-permission-granted"></span>
						</f:then>
						<f:else>
							<span class="t3-icon t3-icon-status t3-icon-status-status t3-icon-status-permission-denied"></span>
						</f:else>
					</f:if>
				</td>

				<!-- robots.txt status -->
				<td>
					<f:if condition="{RootPage.rootSettings.is_robotstxt}">
						<f:then>
							<span class="t3-icon t3-icon-status t3-icon-status-status t3-icon-status-permission-granted"></span>
						</f:then>
						<f:else>
							<span class="t3-icon t3-icon-status t3-icon-status-status t3-icon-status-permission-denied"></span>
						</f:else>
					</f:if>
				</td>

				<!-- Edit settings button -->
				<td>
					<span title="" class="t3-icon t3-icon-actions t3-icon-actions-document t3-icon-document-open" onclick="{RootPage.settingsLink}">&nbsp;</span>
				</td>

			</tr>
		</f:for>
		</tbody>
	</table>
</f:if>

</f:section>
